package com.jhgk.jhcee.auth.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class JhDrawingRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public JhDrawingRecordExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andImplementIdIsNull() {
            addCriterion("implement_id is null");
            return (Criteria) this;
        }

        public Criteria andImplementIdIsNotNull() {
            addCriterion("implement_id is not null");
            return (Criteria) this;
        }

        public Criteria andImplementIdEqualTo(Integer value) {
            addCriterion("implement_id =", value, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdNotEqualTo(Integer value) {
            addCriterion("implement_id <>", value, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdGreaterThan(Integer value) {
            addCriterion("implement_id >", value, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("implement_id >=", value, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdLessThan(Integer value) {
            addCriterion("implement_id <", value, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdLessThanOrEqualTo(Integer value) {
            addCriterion("implement_id <=", value, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdIn(List<Integer> values) {
            addCriterion("implement_id in", values, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdNotIn(List<Integer> values) {
            addCriterion("implement_id not in", values, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdBetween(Integer value1, Integer value2) {
            addCriterion("implement_id between", value1, value2, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdNotBetween(Integer value1, Integer value2) {
            addCriterion("implement_id not between", value1, value2, "implementId");
            return (Criteria) this;
        }

        public Criteria andSubsectionOrderIsNull() {
            addCriterion("subsection_order is null");
            return (Criteria) this;
        }

        public Criteria andSubsectionOrderIsNotNull() {
            addCriterion("subsection_order is not null");
            return (Criteria) this;
        }

        public Criteria andSubsectionOrderEqualTo(Integer value) {
            addCriterion("subsection_order =", value, "subsectionOrder");
            return (Criteria) this;
        }

        public Criteria andSubsectionOrderNotEqualTo(Integer value) {
            addCriterion("subsection_order <>", value, "subsectionOrder");
            return (Criteria) this;
        }

        public Criteria andSubsectionOrderGreaterThan(Integer value) {
            addCriterion("subsection_order >", value, "subsectionOrder");
            return (Criteria) this;
        }

        public Criteria andSubsectionOrderGreaterThanOrEqualTo(Integer value) {
            addCriterion("subsection_order >=", value, "subsectionOrder");
            return (Criteria) this;
        }

        public Criteria andSubsectionOrderLessThan(Integer value) {
            addCriterion("subsection_order <", value, "subsectionOrder");
            return (Criteria) this;
        }

        public Criteria andSubsectionOrderLessThanOrEqualTo(Integer value) {
            addCriterion("subsection_order <=", value, "subsectionOrder");
            return (Criteria) this;
        }

        public Criteria andSubsectionOrderIn(List<Integer> values) {
            addCriterion("subsection_order in", values, "subsectionOrder");
            return (Criteria) this;
        }

        public Criteria andSubsectionOrderNotIn(List<Integer> values) {
            addCriterion("subsection_order not in", values, "subsectionOrder");
            return (Criteria) this;
        }

        public Criteria andSubsectionOrderBetween(Integer value1, Integer value2) {
            addCriterion("subsection_order between", value1, value2, "subsectionOrder");
            return (Criteria) this;
        }

        public Criteria andSubsectionOrderNotBetween(Integer value1, Integer value2) {
            addCriterion("subsection_order not between", value1, value2, "subsectionOrder");
            return (Criteria) this;
        }

        public Criteria andCutMethodIsNull() {
            addCriterion("cut_method is null");
            return (Criteria) this;
        }

        public Criteria andCutMethodIsNotNull() {
            addCriterion("cut_method is not null");
            return (Criteria) this;
        }

        public Criteria andCutMethodEqualTo(Integer value) {
            addCriterion("cut_method =", value, "cutMethod");
            return (Criteria) this;
        }

        public Criteria andCutMethodNotEqualTo(Integer value) {
            addCriterion("cut_method <>", value, "cutMethod");
            return (Criteria) this;
        }

        public Criteria andCutMethodGreaterThan(Integer value) {
            addCriterion("cut_method >", value, "cutMethod");
            return (Criteria) this;
        }

        public Criteria andCutMethodGreaterThanOrEqualTo(Integer value) {
            addCriterion("cut_method >=", value, "cutMethod");
            return (Criteria) this;
        }

        public Criteria andCutMethodLessThan(Integer value) {
            addCriterion("cut_method <", value, "cutMethod");
            return (Criteria) this;
        }

        public Criteria andCutMethodLessThanOrEqualTo(Integer value) {
            addCriterion("cut_method <=", value, "cutMethod");
            return (Criteria) this;
        }

        public Criteria andCutMethodIn(List<Integer> values) {
            addCriterion("cut_method in", values, "cutMethod");
            return (Criteria) this;
        }

        public Criteria andCutMethodNotIn(List<Integer> values) {
            addCriterion("cut_method not in", values, "cutMethod");
            return (Criteria) this;
        }

        public Criteria andCutMethodBetween(Integer value1, Integer value2) {
            addCriterion("cut_method between", value1, value2, "cutMethod");
            return (Criteria) this;
        }

        public Criteria andCutMethodNotBetween(Integer value1, Integer value2) {
            addCriterion("cut_method not between", value1, value2, "cutMethod");
            return (Criteria) this;
        }

        public Criteria andCutScaleIsNull() {
            addCriterion("cut_scale is null");
            return (Criteria) this;
        }

        public Criteria andCutScaleIsNotNull() {
            addCriterion("cut_scale is not null");
            return (Criteria) this;
        }

        public Criteria andCutScaleEqualTo(BigDecimal value) {
            addCriterion("cut_scale =", value, "cutScale");
            return (Criteria) this;
        }

        public Criteria andCutScaleNotEqualTo(BigDecimal value) {
            addCriterion("cut_scale <>", value, "cutScale");
            return (Criteria) this;
        }

        public Criteria andCutScaleGreaterThan(BigDecimal value) {
            addCriterion("cut_scale >", value, "cutScale");
            return (Criteria) this;
        }

        public Criteria andCutScaleGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("cut_scale >=", value, "cutScale");
            return (Criteria) this;
        }

        public Criteria andCutScaleLessThan(BigDecimal value) {
            addCriterion("cut_scale <", value, "cutScale");
            return (Criteria) this;
        }

        public Criteria andCutScaleLessThanOrEqualTo(BigDecimal value) {
            addCriterion("cut_scale <=", value, "cutScale");
            return (Criteria) this;
        }

        public Criteria andCutScaleIn(List<BigDecimal> values) {
            addCriterion("cut_scale in", values, "cutScale");
            return (Criteria) this;
        }

        public Criteria andCutScaleNotIn(List<BigDecimal> values) {
            addCriterion("cut_scale not in", values, "cutScale");
            return (Criteria) this;
        }

        public Criteria andCutScaleBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("cut_scale between", value1, value2, "cutScale");
            return (Criteria) this;
        }

        public Criteria andCutScaleNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("cut_scale not between", value1, value2, "cutScale");
            return (Criteria) this;
        }

        public Criteria andSubsectionIsNull() {
            addCriterion("subsection is null");
            return (Criteria) this;
        }

        public Criteria andSubsectionIsNotNull() {
            addCriterion("subsection is not null");
            return (Criteria) this;
        }

        public Criteria andSubsectionEqualTo(Integer value) {
            addCriterion("subsection =", value, "subsection");
            return (Criteria) this;
        }

        public Criteria andSubsectionNotEqualTo(Integer value) {
            addCriterion("subsection <>", value, "subsection");
            return (Criteria) this;
        }

        public Criteria andSubsectionGreaterThan(Integer value) {
            addCriterion("subsection >", value, "subsection");
            return (Criteria) this;
        }

        public Criteria andSubsectionGreaterThanOrEqualTo(Integer value) {
            addCriterion("subsection >=", value, "subsection");
            return (Criteria) this;
        }

        public Criteria andSubsectionLessThan(Integer value) {
            addCriterion("subsection <", value, "subsection");
            return (Criteria) this;
        }

        public Criteria andSubsectionLessThanOrEqualTo(Integer value) {
            addCriterion("subsection <=", value, "subsection");
            return (Criteria) this;
        }

        public Criteria andSubsectionIn(List<Integer> values) {
            addCriterion("subsection in", values, "subsection");
            return (Criteria) this;
        }

        public Criteria andSubsectionNotIn(List<Integer> values) {
            addCriterion("subsection not in", values, "subsection");
            return (Criteria) this;
        }

        public Criteria andSubsectionBetween(Integer value1, Integer value2) {
            addCriterion("subsection between", value1, value2, "subsection");
            return (Criteria) this;
        }

        public Criteria andSubsectionNotBetween(Integer value1, Integer value2) {
            addCriterion("subsection not between", value1, value2, "subsection");
            return (Criteria) this;
        }

        public Criteria andCutIntervalsIsNull() {
            addCriterion("cut_intervals is null");
            return (Criteria) this;
        }

        public Criteria andCutIntervalsIsNotNull() {
            addCriterion("cut_intervals is not null");
            return (Criteria) this;
        }

        public Criteria andCutIntervalsEqualTo(Integer value) {
            addCriterion("cut_intervals =", value, "cutIntervals");
            return (Criteria) this;
        }

        public Criteria andCutIntervalsNotEqualTo(Integer value) {
            addCriterion("cut_intervals <>", value, "cutIntervals");
            return (Criteria) this;
        }

        public Criteria andCutIntervalsGreaterThan(Integer value) {
            addCriterion("cut_intervals >", value, "cutIntervals");
            return (Criteria) this;
        }

        public Criteria andCutIntervalsGreaterThanOrEqualTo(Integer value) {
            addCriterion("cut_intervals >=", value, "cutIntervals");
            return (Criteria) this;
        }

        public Criteria andCutIntervalsLessThan(Integer value) {
            addCriterion("cut_intervals <", value, "cutIntervals");
            return (Criteria) this;
        }

        public Criteria andCutIntervalsLessThanOrEqualTo(Integer value) {
            addCriterion("cut_intervals <=", value, "cutIntervals");
            return (Criteria) this;
        }

        public Criteria andCutIntervalsIn(List<Integer> values) {
            addCriterion("cut_intervals in", values, "cutIntervals");
            return (Criteria) this;
        }

        public Criteria andCutIntervalsNotIn(List<Integer> values) {
            addCriterion("cut_intervals not in", values, "cutIntervals");
            return (Criteria) this;
        }

        public Criteria andCutIntervalsBetween(Integer value1, Integer value2) {
            addCriterion("cut_intervals between", value1, value2, "cutIntervals");
            return (Criteria) this;
        }

        public Criteria andCutIntervalsNotBetween(Integer value1, Integer value2) {
            addCriterion("cut_intervals not between", value1, value2, "cutIntervals");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}